<fieldset>
    <legend>条件搜索</legend>
    <form action="{:request()->url()}" autocomplete="off" class="layui-form layui-form-pane form-search" method="get" onsubmit="return false">
        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">用户昵称</label>
            <label class="layui-input-inline">
                <input class="layui-input" name="user_nickname" placeholder="请输入用户昵称" value="{$get.user_nickname|default=''}">
            </label>
        </div>
        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">上级代理</label>
            <label class="layui-input-inline">
                <select class='layui-select' name="pid" lay-search="">
                    <option value=''>-- 全部 --</option>
                    {foreach $proxys as $s}
                    {eq name='$s.id' value='$get.pid|default=0'}
                    <option selected value='{$s.id}'>{$s.user_nickname}</option>
                    {else}
                    <option value='{$s.id}'>{$s.user_nickname}</option>
                    {/eq}{/foreach}
                </select>
            </label>
        </div>
        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">授权类型</label>
            <label class="layui-input-inline">
                <select class="layui-select" name="user_autotype">
                    <option value=''>-- 全部 --</option>
                    {foreach ['1'=>'代理','2'=>'贴牌'] as $k=>$v}
                    {if input('user_autotype') eq $k.''}
                    <option selected value="{$k}">{$v}</option>
                    {else}
                    <option value="{$k}">{$v}</option>
                    {/if}
                    {/foreach}
                </select>
            </label>
        </div>
        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">用户状态</label>
            <label class="layui-input-inline">
                <select class="layui-select" name="user_state">
                    <option value=''>-- 全部 --</option>
                    {foreach ['1'=>'正常','2'=>'禁止登录'] as $k=>$v}
                    {if input('user_state') eq $k.''}
                    <option selected value="{$k}">{$v}</option>
                    {else}
                    <option value="{$k}">{$v}</option>
                    {/if}
                    {/foreach}
                </select>
            </label>
        </div>
        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">创建时间</label>
            <label class="layui-input-inline">
                <input class="layui-input" data-date-range name="create_time" placeholder="请选择创建时间" value="{$get.create_time|default=''}">
            </label>
        </div>
        <div class="layui-form-item layui-inline">
            <button class="layui-btn layui-btn-primary" type="submit"><i class="layui-icon">&#xe615;</i> 搜 索</button>
        </div>
    </form>
</fieldset>
